package com.cyan.learn.pattern.responsibility;

public class ManagerHandler extends Handler {
    public ManagerHandler() {
        super(3);
    }

    @Override
    protected void handleLeave(LeaveRequest leaveRequest) {
        StringBuilder sb = new StringBuilder();
        sb.append(leaveRequest.getName())
                .append(" 请假 ")
                .append(leaveRequest.getDays())
                .append(" 天，请求内容：")
                .append(leaveRequest.getContent());
        System.out.println(sb);
        System.out.println("部门经理审批同意");
    }
}
